package com.kokuma.drawsprite.ftp.services.impl;

import java.util.List;

import javax.annotation.Resource;

import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cache.CacheManager;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Service;

import com.kokuma.drawsprite.ftp.dao.ICfgFtpDao;
import com.kokuma.drawsprite.ftp.models.CfgFtp;
import com.kokuma.drawsprite.ftp.services.interfaces.ICfgFtpServices;

@Service("cfgFtpServices")
public class CfgFtpImpl implements ICfgFtpServices{
	
    private static final Logger logger = Logger.getLogger(CfgFtpImpl.class);
    
    @Autowired
	ICfgFtpDao cfgFtpDao;

	@Override
	@Cacheable(value = "cfgFtpCache")
	public List<CfgFtp> getCfgFtp(String ftpCode) {
		return cfgFtpDao.getCfgFtp(ftpCode);
	}
	
}
